package org.example.memora.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDateTime;

/**
 * 帖子分类实体类，对应表 post_categories
 */
@Data
@TableName("post_categories")
public class PostCategory {

    /**
     * 帖子分类ID
     */
    @TableId(value = "category_id", type = IdType.AUTO)
    private Integer categoryId;

    /**
     * 帖子分类名称
     */
    private String name;

    /**
     * 创建时间
     */
    private LocalDateTime createdAt;
}